package com.dnjn.mes.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dnjn.mes.biz.domain.MesRecordExcept;
import com.dnjn.mes.biz.domain.vo.RecordExceptPlanId;

import java.util.List;

/**
 * <p>
 * 异常报警表，正确状态不写入 服务类
 * </p>
 *
 * @author Amber
 * @since 2023-07-26
 */
public interface IMesRecordExceptService extends IService<MesRecordExcept> {

    Integer countRecords(Long equipmentId);

    //int updateRecordStatus(MesRecordExcept domain);

    List<MesRecordExcept> getRecordExceptList(Long equipmentId);

    List<MesRecordExcept> countRecordExcepts(String startTime, String endTime,long equipmentId);

    List<MesRecordExcept> faultAlarmRecord(long equipmentId, String searchKey);

    List<MesRecordExcept> countMaintenanceTime(String startTime, String endTime, long equipmentId);

    List<MesRecordExcept> recordExceptCit(String startTime, String endTime, long equipmentId);

    int updateRecordStatus(RecordExceptPlanId vo, long equipmentId);
}
